//
//  ImagePickerBaseCell.swift
//  ImagePickerKit
//
//  Created by Taurin Tao on 16/8/18.
//  Copyright © 2016年 tao.520it. All rights reserved.
//

import UIKit

class ImagePickerBaseCell: UICollectionViewCell {
    var albumImage: AlbumImage? 
    lazy var imageView: UIImageView = {
        let imageView = UIImageView()
        imageView.contentMode = .ScaleAspectFill
        imageView.clipsToBounds = true
        
        return imageView
    }()
    
    override init(frame: CGRect) {
        super.init(frame: frame)
       
        addSubview(imageView)
    }
    
    override func layoutSubviews() {
        super.layoutSubviews()
        
        imageView.width = width
        imageView.height = height
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
}
